package com.service.infoEntry.dao;

import com.service.infoEntry.entity.TroubleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TroubleInfoDao {

    void saveTrouble(TroubleInfo troubleInfo);

    void updateTrouble(TroubleInfo troubleInfo);

    TroubleInfo searchTroubleByNo(@Param("no") String no);

    List<TroubleInfo> queryOpenTroubleOfProgramme(@Param("programmeId") String programmeId,@Param("userId") String userId);

    List<TroubleInfo> searchTroubleByDesc(String desc);

    List<TroubleInfo> queryTroubleOfTeam(String teamId);
    List<TroubleInfo> queryOpenTroubleOfTeam(@Param("teamId") String teamId,@Param("userId") String userId);

    List<String> queryAllNo(String teamId);

    List<TroubleInfo> queryTroubleOfProgramme(String programmeId);
}
